﻿@model TruckingApplication.Web.Models.RegisterModel
           
@{
    ViewBag.Title = "Subscribe";
}

<h2>Subscribe for a New <u>@ViewBag.SubscriptionType</u> Account.</h2>

<p>
    Use the form below to create a new account. 
</p>
<p>
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jscolor/jscolor.js")" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function () {
        $('#txt_SiteBrandingName').focus(function () {
            $(this).val('');
        });
        $('#txt_NavColor').focus(function () {
            $(this).val('');
        });
        $('#txt_SiteColor').focus(function () {
            $(this).val('');
        });
    });
</script>
@using (Html.BeginForm("Subscribe", "Account", FormMethod.Post, new { enctype = "multipart/form-data", id = "subscriptionForm", name = "subscriptionForm" }))
{
    <input type="hidden" value="@ViewBag.CompanyTypeID" name="CompanyTypeID" id="CompanyTypeID" />

    <div id="lowerContainer">
        <div id="lowerContainerInner">
            <div style="overflow:visible;">
                <table id="tableMgmt">
                    <tr>
                        <td style="text-align:left; vertical-align:top;">
                            <h3>Account Information</h3><br /><br />
                            <table>
                                <tr>
                                    <td>
                                        @Html.Label("User Name *")
                                    </td>
                                    <td>
                                        @Html.TextBoxFor(m => m.UserName)
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Email *")
                                    </td>
                                    <td>    
                                        @Html.TextBoxFor(m => m.Email)
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Password *")
                                    </td>
                                    <td>    
                                        @Html.PasswordFor(m => m.Password)
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Confirm Password *")
                                    </td>
                                    <td>    
                                        @Html.PasswordFor(m => m.ConfirmPassword)
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="text-align:left; vertical-align:top;">
                            <h3>Personal Information</h3><br /><br />
                            <table>
                                <tr>
                                    <td>
                                        @Html.Label("First Name *")
                                    </td>
                                    <td>
                                        @Html.TextBox("firstName")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Last Name *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("lastName")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Address *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("address")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("City *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("city")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("State *")
                                    </td>
                                    <td>
                                        @Html.DropDownList("States", "Select One")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Zip *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("zip")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Phone *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("phone")
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="text-align:left; vertical-align:top;">
                            <h3>Company Information</h3><br /><br />
                            <table>
                                <tr>
                                    <td>
                                        @Html.Label("Company Name *")
                                    </td>
                                    <td>
                                        @Html.TextBox("companyName")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Address *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("companyAddress")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("City *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("companyCity")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("State *")
                                    </td>
                                    <td>    
                                        @Html.DropDownList("CompanyStates", "Select One")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Tax-Id *")
                                    </td>
                                    <td>
                                        @Html.TextBox("taxID")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Phone *")
                                    </td>
                                    <td>    
                                        @Html.TextBox("companyPhone")
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        @Html.Label("Website")
                                    </td>
                                    <td>    
                                        @Html.TextBox("web")
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left; vertical-align:top;" colspan="3">
                            <h3>Template Information</h3><br /><br />
                            <table>
                                <tr>
                                    <td>
                                        Site Branding Name:
                                    </td>
                                    <td>
                                        <input type="text" name="txt_SiteBrandingName" id="txt_SiteBrandingName" value="(Website Company Display Name)" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Choose Navigation Colors:
                                    </td>
                                    <td>
                                        <input type="text" name="txt_NavColor" id="txt_NavColor" value="(Click Here)" class="color" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Choose Accent Colors:
                                    </td>
                                    <td>
                                        <input type="text" name="txt_SiteColor" id="txt_SiteColor" value="(Click Here)" class="color" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Upload Logo:
                                    </td>
                                    <td>
                                        <input name="fu_logo" id="fu_logo" type="file" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <p>
                    <input type="submit" value="Subscribe" />
                </p>
            </div>
        </div>
    </div>
}

<script type="text/javascript">

    $(document).ready(function () {
        $('#subscriptionForm').validate();
    });

</script>